Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

listing - link activation for categories should work on any window.lo… #10712

Merged
merged 3 commits into from
Sep 9, 2024

Conversation

cderv
Copy link
Collaborator

@cderv cderv commented Sep 4, 2024

closes #10710

quarto.js processing for activating link should be impacted by a query or hash part in the window.location

This simple fix ensure quarto does the categories search by comparing a clean offset path.

This has been tested and verified against a simple website with blog post. And also in browser console for quarto-web.

Test can't really be added because this is in-browser processing.

@cscheid
Copy link
Collaborator

cscheid commented Sep 5, 2024

Test can't really be added because this is in-browser processing.

Is there no way for us to do something with Playwright? (I think we don't need to in this case, but I'm trying to understand the claim you made)

@cscheid
Copy link
Collaborator

cscheid commented Sep 5, 2024

(Looks good to me!)

@cderv
Copy link
Collaborator Author

cderv commented Sep 5, 2024

Is there no way for us to do something with Playwright? (

Oh sure with playwright. I was thinking no way in our current smoke and smoke-all way.
But now I see better and indeed with playwright it will be possible.

…cation

It requires to strip any query search or hash part from the URL before comparing it to the link retrieved in listings' items.
[skip ci]
- Add  a new playwright test for blog categories click
- Refactor by using same project than the other tests for blog.
@cderv
Copy link
Collaborator Author

cderv commented Sep 9, 2024

Test with playwright added.

@cderv cderv merged commit cf0b7d0 into main Sep 9, 2024
47 checks passed
@cderv cderv deleted the listing/categories-links branch September 9, 2024 11:28
@aborruso
Copy link
Contributor

aborruso commented Sep 9, 2024

Thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

blog output: tag links don't work from pages called with an anchor URL
3 participants